

    <?php
    //Start session
    session_start();	
    //Unset the variables stored in session
    unset($_SESSION['SESS_MEMBER_ID']);
    unset($_SESSION['SESS_FIRST_NAME']);
    unset($_SESSION['SESS_LAST_NAME']);
    ?>

<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="ie6 ielt8"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="ie7 ielt8"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Please Login</title>
<link rel="stylesheet" type="text/css" href="../css/login.css" />
<link rel="stylesheet" type="text/css" href="../css/style.css" />

</head>
<body>
<a href="index.php" class="back_home_button">Back to Home</a>


<div class="container">
	<section id="content">
    <form name="loginform" action="login_exec.php" method="post">
			<h1>Login Form</h1>
			<div>
				<input  name="username" type="text" placeholder="Username" required id="username" />
			</div>
			<div>
				<input  name="password" type="password" placeholder="Password" required id="password" />
			</div>
			<div>
				<input type="submit" value="Log in" />
				<a href="#">Lost your password?</a>
				<a href="registration.php">Register</a>
			</div>

		</form><!-- form -->
            <div id="login_err">
                <?php
					if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
					foreach($_SESSION['ERRMSG_ARR'] as $msg) {
					echo $msg;
					}
					unset($_SESSION['ERRMSG_ARR']);
					}
					?>
            </div>

	</section><!-- content -->

</div><!-- container -->


</body>
</html>